/*
 */
package tch.code.period.main;

/**
 *
 * @author tch
 */
public class SimpleVisitor implements Visitor {

   
    public void visit(Ferrari car) {
        System.out.println("Ferrari");
    }
    
    
    public void visit(Citroen car) {
        System.out.println("Citroen");
    }

    @Override
    public void visit(Car car) {
        System.out.println("Car");
    }

}
